﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.Dto.YS
{
    public class ErpShippingOrderDTO
    {
        /// <summary>
        /// 单号
        /// </summary>
        public string BillNo { get; set; }
        /// <summary>
        /// 产品代码(生产的产品，物料)
        /// </summary>
        public string ProductCode { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public string TranType { get; set; }
        /// <summary>
        /// 委外加工
        /// </summary>
        public string? Subcontract { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        ///产品规格型号
        /// </summary>
        public string ProductModelSpec { get; set; }
        /// <summary>
        /// 其他单据类型
        /// </summary>
        public string? OtherTypeCode { get; set; }
        /// <summary>
        /// 产品计量单位
        /// </summary>
        public string ProductUnitName { get; set; }
        /// <summary>
        /// 计划生产数量
        /// </summary>
        public decimal ProductQty { get; set; }
        /// <summary>
        /// 生产任务单编号
        /// </summary>
        public string ProOrderNo { get; set; }
     
        public string WorkShopCode { get; set; }
        public string WorkShopName { get; set; }
       
        public List<ErpDocumentsDTOListDTO> items { get; set; }
    }
    public class ErpDocumentsDTOListDTO
    {
        public long? InventoryId { get; set; }
        
        public string MaterialCode { get; set; }

        public string MaterialName { get; set; }
        /// <summary>
        /// 材料规格型号
        /// </summary>
        public string ModelSpec { get; set; }
        /// <summary>
        /// 计量单位
        /// </summary>
        public string? UnitName { get; set; }

        public decimal Qty { get; set; }
        public DateTime PartSendDate { get; set; }

    }
}
